﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace C1106KV
{
    public static class ExtensionMethod
    {

        public static string GetDetails(this Student s)
        {
            int mark = s.Mark ?? 0;
            return string.Format("{0}{1}:{2}",s.StudentID, s.StudentName, mark);
        }

    }
}
